package com.hp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hp.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    //查询编号最大的员工编号,
    @Select("SELECT MAX(employee.`employee_number`) FROM employee")
    Integer selectMaxNum();


}
